<%=link_to "details",event_path(@event,:details=>'true')%> | <%=link_to "edit",edit_event_path(@event)%> | <%=link_to "delete",event_path(@event),:confirm=>"are you sure",:method=>:delete%>
<hr>
<h3><%=@event.title%></h3>
<p>
<b>catagory:</b><br/><%=@event.indentifier%>
</p>
<p>
<b>priority:</b><br/><%=@event.priority_text%>
</p>
<p>
<b>description:</b><br/>
<%=@event.description%>
</p>
<%if @details=='true' and @event.detail%>
<p>
<b><%=@event.detail%></b><br/>
</p>
<%end%>
<hr/>
<%if @last_task%>
<%=@last_task.updated_at.strftime('%y-%m-%d')%> --- <%=h @last_task.description%>
<%end%>
<p>
<b>append task:</b><br/>
<%form_for :task,@task,:url=>tasks_path do |f|%>
  <%=f.hidden_field :users_id%>
  <%=f.hidden_field :event_id%>
  <%=f.text_area :description,:size=>'60x6'%><br/>
  <%if @last_task%>
  <%=hidden_field_tag :last_task,@last_task.id%>
  <%end%>
  <%=submit_tag "append"%>
<%end%>
</p>
